#!/bin/bash

mkdir image-tars
cd image-tars
podman images -n --format "table {{.Repository}}:{{.Tag}}" | sed 's/.*\///g' | awk -F':' '{print $1 "-" $2 ".tar " $1 ":" $2}' | xargs -n2 podman save -o
cd ..
tar -cJf image-tars.xz image-tars/
